#ifndef HOMEPAGE_H
#define HOMEPAGE_H

#include <QtWidgets>
#include "m0wig.h"
#include "modbuswig.h"
#include "mainwindow.h"
#include "setwig.h"
#include "brokenlinewig.h"
#include <QSqlQuery>
#include <QSqlDatabase>

namespace Ui
{
class HomePage;
}

class HomePage : public QWidget
{
    Q_OBJECT

public:
    explicit HomePage(QWidget *parent = 0, QSqlDatabase db = QSqlDatabase());
    void setvalue(QString &value);
    QString id;
    ~HomePage();

private:
    Ui::HomePage *ui;


    M0Wig *m0Wig;
    ModbusWig *modbusWig;
    MainWindow *mainwindow;
    QString currentUserId;
    SetWig *setWig;
    QSqlDatabase db;

    //BrokenLineWig *brokenLineWig; // 声明 BrokenLineWig 成员变量
};

#endif // HOMEPAGE_H
